package com.etc.zmall.dao;

import com.etc.util.PageData;
import com.etc.zmall.entity.Shopc;

/**
 * 购物车的dao接口
 * 
 * @author
 *
 */
public interface ShopCarDao {
	/**
	 * 分页查询用户购物车及模糊查询
	 * 
	 * @param keywords
	 * @return
	 */
	public PageData<Shopc> selShopCar(int userid, int page, int pageSize, String keywords);

	/**
	 * 添加商品至购物车
	 * 
	 * @param shopc
	 * @return
	 */
	public boolean addShopCar(Shopc shopc);

	/**
	 * 将商品从购物车删除
	 * 
	 * @param goodsname
	 * @return
	 */
	public boolean delShopCar(int userid, String goodsname);
}
